import request from '@/utils/request'

// 查询站台数据列表
export function listWstation(query) {
  return request({
    url: '/wstation/wstation/list',
    method: 'get',
    params: query
  })
}

// 查询站台数据详细
export function getWstation(id) {
  return request({
    url: '/wstation/wstation/' + id,
    method: 'get'
  })
}

// 新增站台数据
export function addWstation(data) {
  return request({
    url: '/wstation/wstation',
    method: 'post',
    data: data
  })
}

// 修改站台数据
export function updateWstation(data) {
  return request({
    url: '/wstation/wstation',
    method: 'put',
    data: data
  })
}

// 删除站台数据
export function delWstation(id) {
  return request({
    url: '/wstation/wstation/' + id,
    method: 'delete'
  })
}
